package com.mezz.bones.im.logic.controller;

import com.mezz.bones.framework.base.domain.response.Result;
import com.mezz.bones.im.logic.domain.request.ApiPrivateMessageCreateRequest;
import com.mezz.bones.im.logic.service.IApiPrivateMessageService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api("IM私聊")
@RequestMapping("/im/private/message")
@RestController
@AllArgsConstructor
public class ChatPrivateMessageController {


    private final IApiPrivateMessageService apiCreatePrivateMessageService;

    @PostMapping("/create")
    public Result<?> create(@RequestBody ApiPrivateMessageCreateRequest request){

        apiCreatePrivateMessageService.apiCreatePrivateMessage(request);
        return Result.OK();
    }
}
